var oSubmit_clickCnt = 0;
var apiArray = new Array();
apiArray[0] = "http://000o.cc/jx/ty.php?url=";//强强解析
apiArray[1] = "http://www.wmxz.wang/video.php?url=";//无名小站(若有限速,推荐接口E)
apiArray[2] = "http://api.baiyug.cn/vip/index.php?url=";//优酷接口
apiArray[3] = "http://api.kltvv.com/api/api.php?u=";//磁力云播接口

var oSubmit = document.getElementById('submitVLink');
oSubmit.onclick = function(){
	var vLink = document.getElementById('vLink');
	var addedResult = apiArray[oSubmit_clickCnt]+vLink.value;
	document.getElementById('iframe').src = addedResult;
	oSubmit_clickCnt++;
}
//监听链接输入框输入变化
var vLink = document.getElementById('vLink');
vLink.onchange = function(){
	oSubmit_clickCnt = 0;
}
